#ifndef _FIG_AWARD_TRACKER_H_
#define _FIG_AWARD_TRACKER_H_


#include "fig_gamecenter.h"

class FIGAwardTracker
{
public:

	static FIGAwardTracker&		Instance();

	

	void						Reset();
	void						Start(int TotalEnemies , int TotalStars);

	int							GetStarObtainedPerc();
	int							GetEnemiesKilledPerc();


	int							GetStarObtained() const { return m_StarObtained; };
	int							GetEnemyKilled() const { return m_EnemiesKill; };

	void						GotStar() { m_StarObtained++; };
	void						EnemyKill(int ScoreToAdd);

	int							GetCurrentLevelScore() const { return m_LevelScore; };
	bool						IsGotAwardThisLevel(int AchievementType)const { return m_AwardGotThisLevel[AchievementType]; };		
	void						GotAchievement(int AchievementType) { m_AwardGotThisLevel[AchievementType] = true; };

protected:

	FIGAwardTracker();
	

	int							m_TotalStars;
	int							m_StarObtained;

	int							m_TotalEnemies;
	int							m_EnemiesKill;	

	int							m_LevelScore;

	bool						m_AwardGotThisLevel[FIGGameCenter::ACHIEVEMENT_C];


};


#endif //_FIG_EDITOR_H_